package com.lykj.llw.box.adapter.agent

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.lykj.llw.box.R
import com.lykj.llw.box.data.bean.response.agent.AgentWithdrawalRecordResponse

/**
 * ================================================
 * 提现记录适配器
 * ================================================
 *
 * @author gosha
 * @date 2023/10/30-16:48
 */
class AgentWithdrawalRecordAdapter :
    BaseQuickAdapter<AgentWithdrawalRecordResponse.DataDTO.RowsDTO, BaseViewHolder>(R.layout.item_withdrawal_record) {
    override fun convert(holder: BaseViewHolder, item: AgentWithdrawalRecordResponse.DataDTO.RowsDTO) {
        holder.setText(R.id.tv_time,"${item.updateTime}")
        holder.setText(R.id.tv_amount,"-${item.price}")
    }
}